if (TARGET tinyusb_device)
    add_executable(MT320X
        maxic_i2c.c maxic_mt320x_als.c maxic_mt320x.c
        )

# pull in common dependencies
target_link_libraries(MT320X pico_stdlib hardware_i2c)

# enable usb output, disable uart output
pico_enable_stdio_usb(MT320X 1)
pico_enable_stdio_uart(MT320X 0)

# create map/bin/hex file etc.
pico_add_extra_outputs(MT320X)

# add url via pico_set_program_url
example_auto_set_url(MT320X)

elseif(PICO_ON_DEVICE)
    message(WARNING "not building hello_usb because TinyUSB submodule is not initialized in the SDK")
endif()


